Branching statement
Example (Step 4)
if (my_money > cost_of_CD)
buy_CD();
else
get_a_job();
Julien is shopping
at a mall and
he finds a CD that he wants to
buy. Julien then checks his
pocket to see if he has enough
money to pay for the CD.
Depending on money he will
make a decision. Define this.
Problem solving sequence:
1.
Algorithm
2.
Pseudo-code
3.
Block diagram
4.
C/C++ code